import pick_skill
import time

left, top, right, bottom = [0, 0, 1800, 1169]
pick = pick_skill.Picker(left, top, right, bottom)
cnt = 10000
time.sleep(1)
while cnt >= 0:
    try:
        response = pick.pick()
        if cnt % 5 == 0:
            pick.skill_book2value()
        if response['state'].__eq__("NOT_FIND"):
            # pick.around()
            a = 1
    except Exception as e:
        print(e)
        pass
    cnt -= 1
    print("循环", cnt)
